/**
 * ©2013-2015 Alan L. Rights Reserved.
 */
package org.freedom.railhunter.model;

import java.io.Serializable;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 *
 * @author Alan
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Passenger implements Serializable {
    
    private String code;
    
    @JsonProperty(value = "passenger_name")
    private String passengerName;
    
    @JsonProperty(value = "sex_code")
    private String sexCode;
    
    @JsonProperty(value = "sex_name")
    private String sexName;
    
    @JsonProperty(value = "born_date")
    private String bornDate;
    
    @JsonProperty(value = "country_code")
    private String countryCode;
    
    @JsonProperty(value = "passenger_id_type_code")
    private String passengerIdTypeCode;
    
    @JsonProperty(value = "passenger_id_type_name")
    private String passengerIdTypeName;
    
    @JsonProperty(value = "passenger_id_no")
    private String passengerIdNo;
    
    @JsonProperty(value = "passenger_type")
    private String passengerType;
    
    @JsonProperty(value = "passenger_flag")
    private String passengerFlag;
    
    @JsonProperty(value = "passenger_type_name")
    private String passengerTypeName;
    
    @JsonProperty(value = "mobile_no")
    private String mobileNo;
    
    @JsonProperty(value = "phone_no")
    private String phoneNo;
    
    private String email;
    
    private String address;
    
    private String postalcode;
    
    @JsonProperty(value = "first_letter")
    private String firstLetter;
    
    private String recordCount;
    
    private String total_times;
    
    private String index_id;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassengerName() {
        return passengerName;
    }

    public void setPassengerName(String passengerName) {
        this.passengerName = passengerName;
    }

    public String getSexCode() {
        return sexCode;
    }

    public void setSexCode(String sexCode) {
        this.sexCode = sexCode;
    }

    public String getSexName() {
        return sexName;
    }

    public void setSexName(String sexName) {
        this.sexName = sexName;
    }

    public String getBornDate() {
        return bornDate;
    }

    public void setBornDate(String bornDate) {
        this.bornDate = bornDate;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getPassengerIdTypeCode() {
        return passengerIdTypeCode;
    }

    public void setPassengerIdTypeCode(String passengerIdTypeCode) {
        this.passengerIdTypeCode = passengerIdTypeCode;
    }

    public String getPassengerIdTypeName() {
        return passengerIdTypeName;
    }

    public void setPassengerIdTypeName(String passengerIdTypeName) {
        this.passengerIdTypeName = passengerIdTypeName;
    }

    public String getPassengerIdNo() {
        return passengerIdNo;
    }

    public void setPassengerIdNo(String passengerIdNo) {
        this.passengerIdNo = passengerIdNo;
    }

    public String getPassengerType() {
        return passengerType;
    }

    public void setPassengerType(String passengerType) {
        this.passengerType = passengerType;
    }

    public String getPassengerFlag() {
        return passengerFlag;
    }

    public void setPassengerFlag(String passengerFlag) {
        this.passengerFlag = passengerFlag;
    }

    public String getPassengerTypeName() {
        return passengerTypeName;
    }

    public void setPassengerTypeName(String passengerTypeName) {
        this.passengerTypeName = passengerTypeName;
    }

    public String getMobileNo() {
        return mobileNo;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostalcode() {
        return postalcode;
    }

    public void setPostalcode(String postalcode) {
        this.postalcode = postalcode;
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter;
    }

    public String getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(String recordCount) {
        this.recordCount = recordCount;
    }

    @Override
    public String toString() {
        return getPassengerName() + "-" + getPassengerIdNo();
    }

    public String getTotal_times() {
        return total_times;
    }

    public void setTotal_times(String total_times) {
        this.total_times = total_times;
    }

    public String getIndex_id() {
        return index_id;
    }

    public void setIndex_id(String index_id) {
        this.index_id = index_id;
    }
}
